$(function() {
	YuXi.InfoQuery.init({	
		url:"TaskResearchFilter/infoResearchList.do",
		query:{
			
				currentPage:1
			},					
		success:function(data){					
				YuXi.Render.InformationSeach(data.list,6,"信息研判");//调用信息查询的页面渲染模块
			},
			getQueryParm:function(){
						var query={};
						query={
							
							currentPage:1
						}
						YuXi.InfoQuery.queryData=YuXi.ALLSearch.base(query);
					},
				error:function(){},
				/* selector:{
					nextPage:$("#nextPage"),
					prevPage:$("#prevPage"),
					firstPage:$("#headPage"),
					lastPage:$("#endPage"),
					totalPage:$("#totalPage")
					此项为默认项
				}	 */
		});		
	//信息研判
	$(document).on("click",".update",function(){
		var id= $(this).attr("data-id");
		window.location.href = 'judgeInfo.jsp?detailId=' + id+'&menuId=10';
	});	
	//详情
	$(document).on("click",".detail",function(){
		  var id= $(this).attr("data-id");
			var menuId=$("#menu-container").attr("menu-id");
			window.location.href = '../information/subDetailInfo.jsp?menuId='+menuId+'&detailId=' + id;
	  });
	
	
	
	$(".export-form").submit(function(){		
		if($("input[name='idArray']:checked").length<1)
		{
			myTool.alert({		
			title:"提示",
			context:"必须勾选信息才能导出",
			isMask:true		
			});	
		}	
		else
		{
			$(".export-form").attr("action","/yuxi/LoginFilter/ExportTaskReseachWord.do").submit();
		}
		
	})

	
	
	
	

})


